package org.dromara.germbank.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
import org.hibernate.validator.constraints.Length;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 诊所表
 * 数据库表名：bus_partner_clinic
 */
@Data
@TableName("bus_partner_clinic")
public class BusPartnerClinic implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    @TableField("id")
    @NotNull(message = "主键id不能为空")
    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer id;

    @TableField("clinic_id")
    @NotBlank(message = "诊所唯一编号不能为空")
    @Size(max = 32, message = "诊所唯一编号长度不能超过32")
    @Length(max = 32, message = "诊所唯一编号长度不能超过32")
    @Schema(description = "诊所唯一编号，如 CLINIC-20240528-001", requiredMode = Schema.RequiredMode.REQUIRED)
    private String clinicId;

    @TableField("clinic_name")
    @NotBlank(message = "合作诊所官方全称不能为空")
    @Size(max = 120, message = "合作诊所官方全称长度不能超过120")
    @Length(max = 120, message = "合作诊所官方全称长度不能超过120")
    @Schema(description = "合作诊所官方全称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String clinicName;

    @TableField("clinic_address")
    @NotBlank(message = "完整地址不能为空")
    @Size(max = 255, message = "完整地址长度不能超过255")
    @Length(max = 255, message = "完整地址长度不能超过255")
    @Schema(description = "完整地址（省市区+详情）", requiredMode = Schema.RequiredMode.REQUIRED)
    private String clinicAddress;

    @TableField("coop_status")
    @NotBlank(message = "合作状态不能为空")
    @Size(max = 20, message = "合作状态长度不能超过20")
    @Length(max = 20, message = "合作状态长度不能超过20")
    @Schema(description = "合作状态：PENDING/COOPERATING/SUSPENDED/TERMINATED", requiredMode = Schema.RequiredMode.REQUIRED)
    private String coopStatus;

    @TableField("display_status")
    @NotBlank(message = "前端可见性不能为空")
    @Size(max = 10, message = "前端可见性长度不能超过10")
    @Length(max = 10, message = "前端可见性长度不能超过10")
    @Schema(description = "前端可见性：SHOW/HIDDEN", requiredMode = Schema.RequiredMode.REQUIRED)
    private String displayStatus;

    @TableField("create_time")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField("update_time")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @TableField("del_flag")
    @Schema(description = "删除标志（0存在 1删除）")
    private Integer delFlag;


}
